export default function task() {
  onmessage = function handler(params) {
    setTimeout(() => {
      console.log('task-params', params)
      postMessage({
        status: 'success',
      })
    }, 1000)
  }
}
